<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>密码帮手——找回密码第一步</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
<link href="../../img/resetpassword.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../img/js/all.js"></script>

<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/users/ajax_index.php");
	  DedeXHTTP = null;
}



function doSubmitt()
{

	
if($("mail").checked)
{
if($("gomb").value==""){
		alert("请输入您的邮箱地址");
		$("gomb").focus();   
		return false;
	}
var emailString = $("gomb").value;
if( !checkMail(emailString) )
{
alert("邮箱地址格式错误");
		$("gomb").focus();   
		return false;
}

}//
else
{

if($("gomb").value==""){
		alert("请输入您的手机号码");
		$("gomb").focus();   
		return false;
	}
var mobileString = $("gomb").value;

if( !egrMobileCheck(mobileString) )
{
alert("手机号码格式错误");
		$("gomb").focus();   
		return false;
}

}
return  true;
}

function mb1()
{
$("mbb").innerHTML='邮箱地址：';
}
function mb2()
{
$("mbb").innerHTML='手机号码：';
}


</script>

</head>
<body>
<?php
   pasterTempletDiy("default/head_index.htm");
?>

<div class="login bor">
  <div class="main fLeft">
    <h3>找回密码第一步<em><a href="index_do.php?fmdo=user&dopost=regnew">还没注册 点击这里</a></em></h3>
    <form name='form1' method='POST' action='resetpassword.php' onsubmit="return doSubmitt()" enctype="multipart/form-data">
      <input type="hidden" name="dopost" value="getpwd">
      <input type="hidden" name="gourl" value="<?php if(!empty($gourl)) echo $gourl;?>">
      <ul>
       <br />
        <li><span id="mbb">邮箱地址：</span>
          <input name="gomb" type="text" id="gomb" class="text" value=""/>
        </li>
         <li> <span>验证码：</span>
          <input id="vdcode" class="text login_from3" type="text" style="width: 50px; text-transform: uppercase;" name="vdcode"/>
          <div id="ver_code" style="float:left;"><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="../include/vdimgck.php"/></div>
           看不清？点击更换</li>
           
        <li> <span>取回方式：</span>
          <input name="type" type="radio" value="1" checked="checked" id="mail" onmousedown="mb1();"/>
          通过邮件取回
         &nbsp;&nbsp; <input name="type" type="radio" value="2" id="maill" onmousedown="mb2();"/>
          通过手机取回</li>
        <li><span>&nbsp;</span>
          <button class="button5" id="btnSignCheck" type="submit">下一步</button>
        </li>
      </ul>
    </form>
  </div>
  <div class="login_sidebar fRight">
    <p><span>还没有注册吗？</span><br />
      本站的账号都没有？你也太落伍了<br />
      赶紧去注册一个吧。</p>
    <button class="signUp" onclick="javascript:location='/users/reg.php'">注册</button>
  </div>
</div>

<?php
   pasterTempletDiy("default/footer.htm");
?>

</body>
</html>